<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数据分析</title>
    <script src="./resources/jquery.min.js"></script>
    <link rel="stylesheet" href="./resources/init.css">
    <link rel="stylesheet" href="./resources/index.css">
</head>
<body>
    <div style="width:100%;bottom:0;">
        <div class="mainCont data_analyze" style="padding:0;left:0" >
            <div class="mainPosition">
                <div class="navigationBar clearfix">
                        <span class="Active" onclick="LoadHtmlByType(this,'./GNSS.html');">GNSS</span>
                        <span onclick="LoadHtmlByType(this,'./shenbuweiyi.html');">深部位移(测斜仪)</span>
                        <span onclick="LoadHtmlByType(this,'./dixiashuiwei.html');">地下水位</span>
                </div>
                <div class="newwindowcontent row" style="height: calc(100% - 52px);">
                    <iframe src="./GNSS.html" frameborder="0"  id="DataAnalysisIframe" width="100%" height="100%"></iframe>
                </div>
            </div>
        </div>
    </div>
</body>
<style>
.navigationBar{
    width: 100%;
    height: 40px;
    background-color: #fff;
    border-bottom: 1px solid #cccccc;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.navigationBar span{
    cursor: pointer;
    display: inline-block;
    height: 100%;
    line-height: 40px;
    text-align: center;
    border-right: 1px solid #cccccc;
    padding: 0 10px;
    float: left;
}
.Active{
    color: #fff;
    background-color: #5F9EA0;
}
</style>
<script>
function LoadHtmlByType(that,val){
    $(that).addClass("Active").siblings().removeClass("Active");
    $("#DataAnalysisIframe").attr('src', val);
}
</script>
</html>